<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
    <title>Document</title>
</head>

<body>
    <div id="box">
        <p>多行文本框</p>
        <textarea v-model="message" type="text" placeholder="点击这里可以编辑"></textarea>
        <p style="white-space: pre;">{{message}}</p>
    </div>
    <script>
        new Vue({
            el: '#box',
            data: {
                message: ''
            }
        })
    </script>
</body>

</html>